sort list bool dart

56

booleans.sort((a, b) {
  if(b) {
    return 1;
  }
  return -1;
});

Comments

Submit
0 Comments